#include <stdio.h>

int main()
{
	int m = 0;
	int output = 1;

	printf("Please input m:");
	scanf("%d!", &m);

	int i = 0;
	while(i < m)
	{
		output = (i+1) * output;
		i++;
	}
	printf("%d!=%d\n", m, output);

	return 0;
}
